const getters = {
  sidebar: state => state.app.sidebar,//获取app模块属性
  device: state => state.app.device,
  token: state => state.user.token,//取user模块属性
  userid:state => state.user.userinfo.userId,//获取用户id
  userPhoto: state => state.user.userinfo.staffPhoto,//用户头像
  name: state => state.user.userinfo.username,//用户名称
  departmentName: state => state.user.userinfo.departmentName,//部门名称
  company: state => state.user.userinfo.company,//公司名称
  routers: state => state.user.perrouter//路由信息
}

//grttrts便捷访问
//getters.state.app.sidebar ->getters.sidebar
//
export default getters
